package edu.cuit.avatar.sys;

/**
 * 学员选课系统----课程类
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/5 10:10
 */
public class Course {
    private static int nextId = 1;

    /**
     * 课程标识id
     */
    private int id;
    /**
     * 课程名称
     */
    private String name;
    /**
     * 课程学分
     */
    private int credits;

    /**
     * 课程简介
     */
    private String intro;

    public Course(String name, int credits) {
        this.id = nextId++;
        this.name = name;
        this.credits = credits;
    }


}
